package com.dc.common.core;

import com.dc.common.validated.QueryGroup;
import com.dc.common.validated.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author zhuangcy
 * @date 2021/6/26
 * @description 流程请求实体
 */
@ApiModel("流程请求实体")
@Data
public class ActFowDto extends PageParamDto {
    @NotNull(message = "类别不能为空", groups = {QueryGroup.class, UpdateGroup.class})
    @ApiModelProperty("类别")
    private String category;

    @NotNull(message = "业务id不能为空", groups = {QueryGroup.class, UpdateGroup.class})
    @ApiModelProperty("业务id")
    private String businessKey;

    @NotNull(message = "业务id不能为空", groups = {UpdateGroup.class})
    @ApiModelProperty("任务id")
    private String taskId;

    @NotNull(message = "任务目标节点id不能为空", groups = {UpdateGroup.class})
    @ApiModelProperty("任务目标节点id")
    private String targetNodeId;

    @ApiModelProperty("审批意见")
    private String comment;

    @ApiModelProperty("处理人")
    private String assignee;

}
